package cn.cloudtogo.common.model;

import java.util.List;

/**
 * @author yaolianhua789@gmail.com
 **/
public interface ExternalDatasourceDao {

    ExternalDatasourceModel query(String uuid);

    List<ExternalDatasourceModel> list();

    List<ExternalDatasourceModel> list(String openid);

    void save(ExternalDatasourceModel externalDatasourceModel);

    void updateByUuid(ExternalDatasourceModel externalDatasourceModel);

    void replaceUuid(String uuid, String objectId);

    void delete(String uuid);
}
